// 创建一个store
import { defineStore } from 'pinia'


export const useCounterStore = defineStore('scale', {
  state: () => ({
    rate: 1
  }),

  actions: {
    increment(v:number) {
      this.rate = v
    }
  }
})